﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:WP_Customer_ShopMob"
    x:Class="WP_Customer_ShopMob.Views.InscriptionPage"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">

    <phone:PhoneApplicationPage.Resources>
        <Color x:Key="Color1">#BFF10C0C</Color>
    </phone:PhoneApplicationPage.Resources>

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contient le nom de l'application et le titre de la page-->
        <StackPanel Grid.Row="0" Margin="0,0,0,0" RenderTransformOrigin="0.502,0.508">
            <StackPanel Background="White" Margin="0,0,0,10" Height="111">
                <Image Source="/shopmob.png" Height="117" Margin="104,0" />
                <Rectangle Fill="#FF0A8DD8" HorizontalAlignment="Left" Height="6" Margin="-1,-10,0,0" Stroke="Transparent" VerticalAlignment="Top" Width="485"/>
            </StackPanel>

            <TextBlock Text="Inscription" Margin="10,0,0,0" Style="{StaticResource PhoneTextTitle1Style}" FontSize="60" FontFamily="Eras Demi ITC" Foreground="#FF0A8DD8" Height="83" HorizontalAlignment="Left" Width="470" RenderTransformOrigin="0.501,0.455"/>
        </StackPanel>

        <ScrollViewer x:Name="ContentPanel" Grid.Row="1" Margin="12,0" d:DataContext="ClientViewModel">
            <StackPanel Grid.Row="0" Margin="12,17,0,28" >
                <TextBlock Text="Civilité" Style="{StaticResource PhoneTextNormalStyle}"/>
                <toolkit:ListPicker x:Name="lpk_civilite" Tap="lpk_civilite_Tap"/>
                <TextBlock Text="Nom" Style="{StaticResource PhoneTextNormalStyle}"/>
                <TextBox Height="72" TextWrapping="Wrap" Name="txt_nom" Text="" />
                <TextBlock Text="Prénom" Style="{StaticResource PhoneTextNormalStyle}"/>
                <TextBox Height="72" TextWrapping="Wrap" Name="txt_prenom" Text=""  />
                <TextBlock Text="Date de naissance" Style="{StaticResource PhoneTextNormalStyle}"/>
                <toolkit:DatePicker FontFamily="Verdana" FontSize="64" Foreground="#FFDEC2C2" Height="104" HorizontalAlignment="Left" Margin="61,46,0,0" x:Name="dt_picker" VerticalAlignment="Top" Width="318" Background="#BF161111" HorizontalContentAlignment="Center" />
                <TextBlock Text="Adresse mail" Style="{StaticResource PhoneTextNormalStyle}"/>
                <TextBox Height="72" TextWrapping="Wrap" Name="txt_email" Text="" InputScope="EmailNameOrAddress" />
                <TextBlock Text="Mot de passe" Style="{StaticResource PhoneTextNormalStyle}"/>
                <PasswordBox Height="72" Name="txt_password" />
                <TextBlock Text="Adresse postale" Style="{StaticResource PhoneTextNormalStyle}"/>
                <TextBox Height="72" TextWrapping="Wrap" Name="txt_adresse" Text=""  />
                <TextBlock Text="Code postal" Style="{StaticResource PhoneTextNormalStyle}"/>
                <TextBox Height="72" TextWrapping="Wrap" Name="txt_cp" Text=""  />
                <TextBlock Text="Ville" Style="{StaticResource PhoneTextNormalStyle}"/>
                <TextBox Height="72" TextWrapping="Wrap" Name="txt_ville" Text=""  />
                <TextBlock Text="Téléphone fixe" Style="{StaticResource PhoneTextNormalStyle}"/>
                <TextBox Height="72" TextWrapping="Wrap" Name="txt_fixe" Text=""  InputScope="TelephoneNumber"/>
                <TextBlock Text="Téléphone mobile" Style="{StaticResource PhoneTextNormalStyle}"/>
                <TextBox Height="72" TextWrapping="Wrap" Name="txt_mobile" Text="" InputScope="TelephoneNumber"  />
                <Button x:Name="btn_enregistrement" Content="Enregistrer" Click="btn_enregistrer"/>
            </StackPanel>
        </ScrollViewer>
    </Grid>

</phone:PhoneApplicationPage>